package com.daryl;

import com.daryl.bean.User;
import com.daryl.mapper.UserMapper;
import com.daryl.sqlSession.MySqlsession;

public class TestMybatis {
    public static void main(String[] args){
        MySqlsession sqlsession = new MySqlsession();
        UserMapper mapper = sqlsession.getMapper(UserMapper.class);
        User user = mapper.getUserById("1");
        System.out.println(user.getUsername()+"--"+user.getPassword());
    }
}
